package com.woniuxy.yoga.user.client;

import com.woniuxy.yoga.commons.core.model.Result;
import com.woniuxy.yoga.feign.config.FeignConfig;
import com.woniuxy.yoga.user.model.dto.BusinessStore;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;


@FeignClient(name = "business-service",configuration = FeignConfig.class,path = "/business")
public interface BusinessClient {

    /**
     * 通过门店ID查询门店信息
     * @param storeId 门店id
     * @return BusinessStore
     */
    @GetMapping("/businessStore/selByStoreId/{storeId}")
    Result<BusinessStore> selByStoreId(@PathVariable("storeId") Integer storeId);
}
